import Layout from '@/layout'

const dispatch = {
  path: '/dispatch',
  component: Layout,
  redirect: 'noRedirect',
  name: 'dispatch',
  meta: {
    title: '调度管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'transport-task',
      component: () => import('@/views/dispatch/transport-task/index'),
      name: 'TransportTask',
      meta: { title: '运输任务管理', noCache: true }
    },
    {
      path: 'line-manage',
      component: () => import('@/views/dispatch/line-manage/index'),
      name: 'LineManage',
      meta: { title: '线路范围', noCache: true }
    },
    {
      path: 'pickUptask',
      component: () => import('@/views/dispatch/pickUptask/index'),
      name: 'pickUptask',
      meta: { title: '取件作业管理', noCache: true }
    },
    {
      path: 'dispatchTask',
      component: () => import('@/views/dispatch/dispatchTask/index'),
      name: 'dispatchTask',
      meta: { title: '派件作业管理', noCache: true }
    }
  ]
}

export default dispatch
